//获取应用实例
let app = getApp();
let httptool=require("../../utils/zry.httptool.js");
Page({
  data:{
      result_prop:'',
      imgUrls:'',
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    let that=this;
    let typeId=options.type;
    if(typeId==1){
        wx.setNavigationBarTitle({ //动态设置头部标题
          title: '建盟反馈'
        })
        that.setData({result_prop:'你好，你的建盟请求我们已经收到，请耐心等待系统审核！'});
    }else if(typeId==2){
        wx.setNavigationBarTitle({ //动态设置头部标题
          title: '反馈情况'
        })
        that.setData({result_prop:'你好！你的意见我们已经收到，稍后我们会进行查看，请耐心等待！'});
    }
    that.getImgUrl();
  },
  getImgUrl:function(e){
    let that=this;
     httptool.ajaxPost("api/BannerPicture/GetBannerPictureByType", {BannerType:'Approve'}, function (res) { 
        if(res.suc){
            let datas=res.data;
            that.setData({imgUrls:datas[0].ImgUrl});
        }
      })
  },

})